public class CheapGoods extends Goods {
       public int weight;
       public void newSetWeight(int w) {
              weight = w;
              System.out.println("int型的 weighe="+weight);
       }
       public double  newGetprice() {
              double price = weight*10;
              return price;
       }
}


